HAL RTC constants migration

This section provides information about the HAL RTC constants migration .

HAL RTC hour formats constants

HAL1

HAL2



#define RTC_HOURFORMAT_24
#define RTC_HOURFORMAT_12
typedef enum
{
  HAL_RTC_TIME_FORMAT_AM_24H
  HAL_RTC_TIME_FORMAT_PM
} hal_rtc_time_format_am_pm_t;

Related concepts:


HAL RTC output selection constants

HAL1

HAL2



#define RTC_OUTPUT_DISABLE
#define RTC_OUTPUT_ALARMA
#define RTC_OUTPUT_ALARMB
#define RTC_OUTPUT_WAKEUP
#define RTC_OUTPUT_TAMPER
typedef enum
{
  HAL_RTC_OUTPUT_OUT1_ALARMA
  HAL_RTC_OUTPUT_OUT1_ALARMB
  HAL_RTC_OUTPUT_OUT1_WAKEUP
  HAL_RTC_OUTPUT_OUT1_TAMP
  HAL_RTC_OUTPUT_OUT1_CALIB
  HAL_RTC_OUTPUT_OUT2_ALARMA
  HAL_RTC_OUTPUT_OUT2_ALARMB
  HAL_RTC_OUTPUT_OUT2_WAKEUP
  HAL_RTC_OUTPUT_OUT2_TAMP
  HAL_RTC_OUTPUT_OUT2_CALIB
  HAL_RTC_OUTPUT_OUT1_ALARMA_TAMP
  HAL_RTC_OUTPUT_OUT1_ALARMB_TAMP
  HAL_RTC_OUTPUT_OUT1_WAKEUP_TAMP
  HAL_RTC_OUTPUT_OUT2_ALARMA_TAMP
  HAL_RTC_OUTPUT_OUT2_ALARMB_TAMP
  HAL_RTC_OUTPUT_OUT2_WAKEUP_TAMP
  HAL_RTC_OUTPUT_OUT1_ALARMA_OUT2_CALIB
  HAL_RTC_OUTPUT_OUT1_ALARMB_OUT2_CALIB
  HAL_RTC_OUTPUT_OUT1_WAKEUP_OUT2_CALIB
  HAL_RTC_OUTPUT_OUT1_TAMP_OUT2_CALIB
  HAL_RTC_OUTPUT_OUT1_ALARMA_TAMP_OUT2_CALIB
  HAL_RTC_OUTPUT_OUT1_ALARMB_TAMP_OUT2_CALIB
  HAL_RTC_OUTPUT_OUT1_WAKEUP_TAMP_OUT2_CALIB
} hal_rtc_output_t;

In HAL2, the remap and output defines have been consolidated into a single enumeration, offering multiple combination options for user selection.

Related concepts:


HAL RTC output polarity constants

HAL1

HAL2



#define RTC_OUTPUT_POLARITY_HIGH
#define RTC_OUTPUT_POLARITY_LOW
typedef enum
{
  HAL_RTC_OUTPUT_TAMPALARM_POLARITY_HIGH
  HAL_RTC_OUTPUT_TAMPALARM_POLARITY_LOW
} hal_rtc_output_tampalarm_polarity_t;

Related concepts:


HAL RTC output type ALARM OUT constants

HAL1

HAL2



#define RTC_OUTPUT_TYPE_PUSHPULL
#define RTC_OUTPUT_TYPE_OPENDRAIN


#define RTC_ALARM_OUTPUT_TYPE
typedef enum
{
  HAL_RTC_OUTPUT_TAMPALARM_TYPE_PUSHPULL
  HAL_RTC_OUTPUT_TAMPALARM_TYPE_OPENDRAIN
} hal_rtc_output_tampalarm_type_t;

The output type is configured as either PUSHPULL or OPENDRAIN, based on the flag specified by the user.

Related concepts:


HAL RTC RTC output pull up ALARM OUT constants

HAL1

HAL2



#define RTC_OUTPUT_PULLUP_NONE
#define RTC_OUTPUT_PULLUP_ON
typedef enum
{
  HAL_RTC_OUTPUT_TAMPALARM_PULLUP_DISABLE
  HAL_RTC_OUTPUT_TAMPALARM_PULLUP_ENABLE
} hal_rtc_output_tampalarm_pullup_t;

Related concepts:


HAL RTC output ALARM OUT remap constants

HAL1

HAL2

#define RTC_OUTPUT_REMAP_NONE
#define RTC_OUTPUT_REMAP_POS1

These constants have been consolidated into the hal_rtc_output_t enumeration in HAL2. Use the function HAL_RTC_OUTPUT_Enable( ) instead.

Example:

/* Alarm A and tamper event are routed to output 2 */
 HAL_RTC_OUTPUT_OUT2_ALARMA_TAMP = (LL_RTC_ALARMOUT_ALARM_A |
                                    LL_RTC_OUTPUT_TAMPER_ENABLE |
                                    LL_RTC_ALARM_OUTPUT_REMAP_POS1)

Refer to: HAL RTC output selection constants


HAL RTC AM PM constants

HAL1

HAL2



#define RTC_HOURFORMAT12_AM
#define RTC_HOURFORMAT12_PM
typedef enum
{
  HAL_RTC_TIME_FORMAT_AM_24H
  HAL_RTC_TIME_FORMAT_PM
} hal_rtc_time_format_am_pm_t;

Related concepts:


HAL RTC day light saving constants

HAL1

HAL2

#define RTC_DAYLIGHTSAVING_SUB1H
#define RTC_DAYLIGHTSAVING_ADD1H
#define RTC_DAYLIGHTSAVING_NONE

Removed ; use HAL_RTC_CALENDAR_SubtractOneHour().

Removed ; use HAL_RTC_CALENDAR_AddOneHour().


HAL RTC store operation constants

HAL1

HAL2

#define RTC_STOREOPERATION_RESET
#define RTC_STOREOPERATION_SET

Removed ; use HAL_RTC_CALENDAR_DisableSummerTimeMemorization().

Removed ; use HAL_RTC_CALENDAR_EnableSummerTimeMemorization().


HAL RTC input parameter format constants

HAL1

HAL2

#define RTC_FORMAT_BIN
#define RTC_FORMAT_BCD

Removed ; use binary enumiration mode instead.

For more details Refer to HAL RTC Binary Mode


HAL RTC month date constants

HAL1

HAL2



#define RTC_MONTH_JANUARY
#define RTC_MONTH_FEBRUARY
#define RTC_MONTH_MARCH
#define RTC_MONTH_APRIL
#define RTC_MONTH_MAY
#define RTC_MONTH_JUNE
#define RTC_MONTH_JULY
#define RTC_MONTH_AUGUST
#define RTC_MONTH_SEPTEMBER
#define RTC_MONTH_OCTOBER
#define RTC_MONTH_NOVEMBER
#define RTC_MONTH_DECEMBER
typedef enum
{
  HAL_RTC_MONTH_JANUARY
  HAL_RTC_MONTH_FEBRUARY
  HAL_RTC_MONTH_MARCH
  HAL_RTC_MONTH_APRIL
  HAL_RTC_MONTH_MAY
  HAL_RTC_MONTH_JUNE
  HAL_RTC_MONTH_JULY
  HAL_RTC_MONTH_AUGUST
  HAL_RTC_MONTH_SEPTEMBER
  HAL_RTC_MONTH_OCTOBER
  HAL_RTC_MONTH_NOVEMBER
  HAL_RTC_MONTH_DECEMBER
} hal_rtc_month_t;

Related concepts:


HAL RTC week day constants

HAL1

HAL2



#define RTC_WEEKDAY_MONDAY
#define RTC_WEEKDAY_TUESDAY
#define RTC_WEEKDAY_WEDNESDAY
#define RTC_WEEKDAY_THURSDAY
#define RTC_WEEKDAY_FRIDAY
#define RTC_WEEKDAY_SATURDAY
#define RTC_WEEKDAY_SUNDAY
typedef enum
{
  HAL_RTC_WEEKDAY_MONDAY,
  HAL_RTC_WEEKDAY_TUESDAY,
  HAL_RTC_WEEKDAY_WEDNESDAY,
  HAL_RTC_WEEKDAY_THURSDAY,
  HAL_RTC_WEEKDAY_FRIDAY,
  HAL_RTC_WEEKDAY_SATURDAY,
  HAL_RTC_WEEKDAY_SUNDAY
} hal_rtc_weekday_t;

Related concepts:


HAL RTC alarm date Weekday constants

HAL1

HAL2



#define RTC_ALARMDATEWEEKDAYSEL_DATE
#define RTC_ALARMDATEWEEKDAYSEL_WEEKDAY
typedef enum
{
  HAL_RTC_ALARM_DAY_TYPE_SEL_MONTHDAY,
  HAL_RTC_ALARM_DAY_TYPE_SEL_WEEKDAY
} hal_rtc_alarm_day_type_selection_t;

Related concepts:


HAL RTC alarm mask constants

HAL1

HAL2

#define RTC_ALARMMASK_NONE
#define RTC_ALARMMASK_DATEWEEKDAY
#define RTC_ALARMMASK_HOURS
#define RTC_ALARMMASK_MINUTES
#define RTC_ALARMMASK_SECONDS
#define RTC_ALARMMASK_ALL
#define HAL_RTC_ALARM_MASK_NONE
#define HAL_RTC_ALARM_MASK_DAY
#define HAL_RTC_ALARM_MASK_HOURS
#define HAL_RTC_ALARM_MASK_MINUTES
#define HAL_RTC_ALARM_MASK_SECONDS
#define HAL_RTC_ALARM_MASK_ALL

Related concepts: Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).


HAL RTC alarms constants

HAL1

HAL2



#define RTC_ALARM_A
#define RTC_ALARM_B
typedef enum
{
  HAL_RTC_ALARM_A,
  HAL_RTC_ALARM_B
} hal_rtc_alarm_t;

Related concepts:


HAL RTC alarms flag auto clear constants

HAL1

HAL2



#define ALARM_FLAG_AUTOCLR_ENABLE
#define ALARM_FLAG_AUTOCLR_DISABLE
typedef enum
{
  HAL_ALARM_AUTO_CLEAR_ENABLE
  HAL_ALARM_AUTO_CLEAR_DISABLE
} hal_rtc_alarm_auto_clear_t;

Related concepts:


HAL RTC alarm sub seconds masks constants

HAL1

HAL2

#define RTC_ALARMSUBSECONDMASK_ALL
#define RTC_ALARMSUBSECONDMASK_SS14_1
#define RTC_ALARMSUBSECONDMASK_SS14_2
#define RTC_ALARMSUBSECONDMASK_SS14_3
#define RTC_ALARMSUBSECONDMASK_SS14_4
#define RTC_ALARMSUBSECONDMASK_SS14_5
#define RTC_ALARMSUBSECONDMASK_SS14_6
#define RTC_ALARMSUBSECONDMASK_SS14_7
#define RTC_ALARMSUBSECONDMASK_SS14_8
#define RTC_ALARMSUBSECONDMASK_SS14_9
#define RTC_ALARMSUBSECONDMASK_SS14_10
#define RTC_ALARMSUBSECONDMASK_SS14_11
#define RTC_ALARMSUBSECONDMASK_SS14_12
#define RTC_ALARMSUBSECONDMASK_SS14_13
#define RTC_ALARMSUBSECONDMASK_SS14
#define RTC_ALARMSUBSECONDMASK_NONE

These constants have been removed. Instead, use the function HAL_RTC_ALARM_SetBinarySubSecondMask().

This function configures the sub-second mask for Alarm A or B, specifying the number of least significant bits (LSBs) in the sub-second field to be ignored.

Mask values:

  • In binary mode none, the valid range is from Min_Data=0x0 to Max_Data=0xF.

  • Otherwise, the valid range is from Min_Data=0x0 to Max_Data=0x3F.


HAL RTC interrupts constants

HAL1

HAL2

#define RTC_IT_TS

Removed ; use HAL_RTC_TIMESTAMP_EnableIT() / HAL_RTC_TIMESTAMP_DisableIT().

#define RTC_IT_WUT

Removed ; use HAL_RTC_WAKEUP_Start() / HAL_RTC_WAKEUP_Stop().

#define RTC_IT_SSRU

Removed ; use HAL_RTC_CALENDAR_EnableITSubSecondsUnderflow() / HAL_RTC_CALENDAR_DisableITSubSecondsUnderflow().

#define RTC_IT_ALRA
#define RTC_IT_ALRB

Removed ; use HAL_RTC_ALARM_Start(hal_rtc_alarm_t alarm, uint32_t interruption) / HAL_RTC_ALARM_Stop(hal_rtc_alarm_t alarm)

#define RTC_FLAG_MASK

Removed ; used internally in HAL1.


HAL RTC flags definitions constants

HAL1

HAL2

#define RTC_FLAG_RECALPF
#define RTC_FLAG_INITF
#define RTC_FLAG_RSF
#define RTC_FLAG_INITS
#define RTC_FLAG_SHPF
#define RTC_FLAG_WUTWF
#define RTC_FLAG_SSRUF
#define RTC_FLAG_ITSF
#define RTC_FLAG_TSOVF
#define RTC_FLAG_TSF
#define RTC_FLAG_WUTF
#define RTC_FLAG_ALRBF
#define RTC_FLAG_ALRAF

In HAL1, these definitions are utilized by the macros __HAL_RTC_GET_FLAG().

In HAL2 you can use the PollForEvent functions directly to check the flag

HAL_RTC_TIMESTAMP_PollForEvent(uint32_t timeout_ms)

HAL_RTC_WAKEUP_PollForEvent(uint32_t timeout_ms)

HAL_RTC_ALARM_PollForEvent(hal_rtc_alarm_t alarm, uint32_t timeout_ms)

For the rest of the defines you can go to the LL layer and use these functions to get the desired flags:

HAL RTC Get Flag macros.


HAL RTC clear flags constants

HAL1

HAL2

#define RTC_CLEAR_SSRUF
#define RTC_CLEAR_ITSF
#define RTC_CLEAR_TSOVF
#define RTC_CLEAR_TSF
#define RTC_CLEAR_WUTF
#define RTC_CLEAR_ALRBF
#define RTC_CLEAR_ALRAF

In HAL1,these definitions are utilized by the macros __HAL_RTC_SSRU_CLEAR_FLAG(__HANDLE__, __FLAG__) __HAL_RTC_CLEAR_FLAG(__HANDLE__, __FLAG__).

In HAL2 these definitions and macros have been removed.

You can directly use the PollForEvent functions, as they automatically clear the flags after performing the checks:

HAL_RTC_TIMESTAMP_PollForEvent(uint32_t timeout_ms)

HAL_RTC_WAKEUP_PollForEvent(uint32_t timeout_ms)

HAL_RTC_ALARM_PollForEvent(hal_rtc_alarm_t alarm, uint32_t timeout_ms)

For the remaining definitions, please refer to the LL layer and utilize the provided functions to clear the specific flags as needed.

Use HAL RTC SSRU Clear Flag Macro and HAL RTC Clear Flag macros instead.


HAL RTC active seed size constants

HAL1

HAL2

#define RTC_ATAMP_SEED_NB_UINT32

Removed and replaced with the corresponding numerical value directly within the HAL_TAMP_ACTIVE_Start() and HAL_TAMP_ACTIVE_SetSeed() functions.


HAL RTC time stamp edges constants

HAL1

HAL2



#define RTC_TIMESTAMPEDGE_RISING
#define RTC_TIMESTAMPEDGE_FALLING
typedef enum
{
  HAL_RTC_TIMESTAMP_EDGE_RISING
  HAL_RTC_TIMESTAMP_EDGE_FALLING
} hal_rtc_timestamp_source_pin_edge_t;

Related concepts:


HAL RTC time stamp pin selection constants

HAL1

HAL2

#define RTC_TIMESTAMPPIN_DEFAULT

Removed due to being unused in HAL1 and retained solely for compatibility with these functions:

HAL_RTCEx_SetTimeStamp() / HAL_RTCEx_SetTimeStamp_IT()


HAL RTC wakeup timer definitions constants

HAL1

HAL2



#define RTC_WAKEUPCLOCK_RTCCLK_DIV16
#define RTC_WAKEUPCLOCK_RTCCLK_DIV8
#define RTC_WAKEUPCLOCK_RTCCLK_DIV4
#define RTC_WAKEUPCLOCK_RTCCLK_DIV2
#define RTC_WAKEUPCLOCK_CK_SPRE_16BITS
#define RTC_WAKEUPCLOCK_CK_SPRE_17BITS
typedef enum
{
  HAL_RTC_WAKEUP_TIMER_CLOCK_RTCCLK_DIV16
  HAL_RTC_WAKEUP_TIMER_CLOCK_RTCCLK_DIV8
  HAL_RTC_WAKEUP_TIMER_CLOCK_RTCCLK_DIV4
  HAL_RTC_WAKEUP_TIMER_CLOCK_RTCCLK_DIV2
  HAL_RTC_WAKEUP_TIMER_CLOCK_BCD_UPDATE
  HAL_RTC_WAKEUP_TIMER_CLOCK_BCD_UPDATE_ADD_1BIT
} hal_rtc_wakeup_timer_clock_t;

Related concepts:


HAL RTC smooth calibration period definitions constants

HAL1

HAL2



#define RTC_SMOOTHCALIB_PERIOD_32SEC
#define RTC_SMOOTHCALIB_PERIOD_16SEC
#define RTC_SMOOTHCALIB_PERIOD_8SEC
typedef enum
{
 HAL_RTC_CALIBRATION_PERIOD_32SEC
 HAL_RTC_CALIBRATION_PERIOD_16SEC
 HAL_RTC_CALIBRATION_PERIOD_8SEC
} hal_rtc_calibration_period_t;

Related concepts:


HAL RTC smooth calibration plus pulses definitions constants

HAL1

HAL2



#define RTC_SMOOTHCALIB_PLUSPULSES_SET
#define RTC_SMOOTHCALIB_PLUSPULSES_RESET
typedef enum
{
 HAL_RTC_CALIBRATION_ENABLED
 HAL_RTC_CALIBRATION_DISABLED
} hal_rtc_calibration_status_t;

Related concepts:


HAL RTC smooth calibration low power definitions constants

HAL1

HAL2



#define RTC_LPCAL_SET
#define RTC_LPCAL_RESET
typedef enum
{
 HAL_RTC_ULTRA_LOW_POWER_ENABLED
 HAL_RTC_ULTRA_LOW_POWER_DISABLED
} hal_rtc_ultra_low_power_mode_status_t;

Related concepts:


HAL RTC calibration output selection definitions constants

HAL1

HAL2



#define RTC_CALIBOUTPUT_512HZ
#define RTC_CALIBOUTPUT_1HZ
typedef enum
{
  HAL_RTC_OUTPUT_CALIBRATION_ASYNCHRONOUS_DIV64
  HAL_RTC_OUTPUT_CALIBRATION_SYNCHRONOUS
} hal_rtc_output_calibration_frequency_t;

Related concepts:


HAL RTC add 1 second parameter definitions constants

HAL1

HAL2



#define RTC_SHIFTADD1S_RESET
#define RTC_SHIFTADD1S_SET
typedef enum
{
  HAL_RTC_CALIBRATION_SHIFT_SECOND_DELAY
  HAL_RTC_CALIBRATION_SHIFT_SECOND_ADVANCE
} hal_rtc_calibration_shift_second_t;

HAL RTC tamper pins definition constants

HAL1

HAL2

#define RTC_TAMPER_1
#define RTC_TAMPER_2
#define RTC_TAMPER_3
#define RTC_TAMPER_4
#define RTC_TAMPER_5
#define RTC_TAMPER_6
#define RTC_TAMPER_7
#define RTC_TAMPER_8
#define RTC_TAMPER_ALL
#define HAL_TAMP_TAMPER_1
#define HAL_TAMP_TAMPER_2
#define HAL_TAMP_TAMPER_3
#define HAL_TAMP_TAMPER_4
#define HAL_TAMP_TAMPER_5
#define HAL_TAMP_TAMPER_6
#define HAL_TAMP_TAMPER_7
#define HAL_TAMP_TAMPER_8
#define HAL_TAMP_TAMPER_ALL

Related concepts: Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).


HAL RTC internal tamper pins definition constants

HAL1

HAL2

#define RTC_INT_TAMPER_1
#define RTC_INT_TAMPER_2
#define RTC_INT_TAMPER_3
#define RTC_INT_TAMPER_5
#define RTC_INT_TAMPER_6
#define RTC_INT_TAMPER_7
#define RTC_INT_TAMPER_8
#define RTC_INT_TAMPER_9
#define RTC_INT_TAMPER_11
#define RTC_INT_TAMPER_12
#define RTC_INT_TAMPER_13
#define RTC_INT_TAMPER_ALL
#define HAL_TAMP_INTERNAL_TAMPER_1
#define HAL_TAMP_INTERNAL_TAMPER_2
#define HAL_TAMP_INTERNAL_TAMPER_3
#define HAL_TAMP_INTERNAL_TAMPER_5
#define HAL_TAMP_INTERNAL_TAMPER_6
#define HAL_TAMP_INTERNAL_TAMPER_7
#define HAL_TAMP_INTERNAL_TAMPER_8
#define HAL_TAMP_INTERNAL_TAMPER_9
#define HAL_TAMP_INTERNAL_TAMPER_11
#define HAL_TAMP_INTERNAL_TAMPER_12
#define HAL_TAMP_INTERNAL_TAMPER_13
#define HAL_TAMP_INTERNAL_ALL

Related concepts: Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).


HAL RTC tamper trigger constants

HAL1

HAL2



#define RTC_TAMPERTRIGGER_RISINGEDGE
#define RTC_TAMPERTRIGGER_FALLINGEDGE
#define RTC_TAMPERTRIGGER_LOWLEVEL
#define RTC_TAMPERTRIGGER_HIGHLEVEL
typedef enum
{
  HAL_TAMP_PASSIVE_TRIGGER_RISING
  HAL_TAMP_PASSIVE_TRIGGER_FALLING
  HAL_TAMP_PASSIVE_TRIGGER_LOW
  HAL_TAMP_PASSIVE_TRIGGER_HIGH
} hal_tamp_passive_trigger_t;

Related concepts:


HAL RTC tamper maskflag constants

HAL1

HAL2



#define RTC_TAMPERMASK_FLAG_DISABLE
#define RTC_TAMPERMASK_FLAG_ENABLE
typedef enum
{
 HAL_TAMP_PASSIVE_UNMASKED,
 HAL_TAMP_PASSIVE_MASKED
} hal_tamp_passive_mask_t;

Related concepts:


HAL RTC tamper erase backup constants

HAL1

HAL2



#define RTC_TAMPER_ERASE_BACKUP_ENABLE
#define RTC_TAMPER_ERASE_BACKUP_DISABLE
typedef enum
{
  HAL_TAMP_INTERNAL_SECRETS_ERASE
  HAL_TAMP_INTERNAL_SECRETS_NO_ERASE
} hal_tamp_internal_secrets_erase_t;

Related concepts:


HAL RTC tamper filter constants

HAL1

HAL2



#define RTC_TAMPERFILTER_DISABLE
#define RTC_TAMPERFILTER_2SAMPLE
#define RTC_TAMPERFILTER_4SAMPLE
#define RTC_TAMPERFILTER_8SAMPLE
typedef enum
{
  HAL_TAMP_PASSIVE_FILTER_DISABLE
  HAL_TAMP_PASSIVE_FILTER_2_SAMPLES
  HAL_TAMP_PASSIVE_FILTER_4_SAMPLES
  HAL_TAMP_PASSIVE_FILTER_8_SAMPLES
} hal_tamp_passive_filter_t;

Related concepts:


HAL RTC tamper sampling frequencies constants

HAL1

HAL2



#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256
typedef enum
{
  HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_32768
  HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_16384
  HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_8192
  HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_4096
  HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_2048
  HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_1024
  HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_512
  HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_256
} hal_tamp_passive_sample_frequency_t;

Related concepts:


HAL RTC tamper pin precharge duration constants

HAL1

HAL2



#define RTC_TAMPERPRECHARGEDURATION_1RTCCLK
#define RTC_TAMPERPRECHARGEDURATION_2RTCCLK
#define RTC_TAMPERPRECHARGEDURATION_4RTCCLK
#define RTC_TAMPERPRECHARGEDURATION_8RTCCLK
typedef enum
{
  HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_1_RTCCLK
  HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_2_RTCCLK
  HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_4_RTCCLK
  HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_8_RTCCLK
} hal_tamp_passive_pull_up_precharge_duration_t;

Related concepts:


HAL RTC tamper pull up constants

HAL1

HAL2



#define RTC_TAMPER_PULLUP_ENABLE
#define RTC_TAMPER_PULLUP_DISABLE
typedef enum
{
  HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_ENABLE,
  HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_DISABLE
} hal_tamp_passive_pull_up_precharge_state_t;

Related concepts:


HAL RTC tamper timestamp on tamper detection definitions constants

HAL1

HAL2


#define RTC_TIMESTAMPONTAMPERDETECTION_DISABLE
#define RTC_TIMESTAMPONTAMPERDETECTION_ENABLE

Removed , use

HAL_RTC_TIMESTAMP_DisableTamperSource()

HAL_RTC_TIMESTAMP_EnableTamperSource()


HAL RTC tamper interrupt constants

HAL1

HAL2

#define RTC_IT_TAMP_1
#define RTC_IT_TAMP_2
#define RTC_IT_TAMP_3
#define RTC_IT_TAMP_4
#define RTC_IT_TAMP_5
#define RTC_IT_TAMP_6
#define RTC_IT_TAMP_7
#define RTC_IT_TAMP_8
#define RTC_IT_TAMP_ALL
#define HAL_TAMP_IT_TAMPER_1
#define HAL_TAMP_IT_TAMPER_2
#define HAL_TAMP_IT_TAMPER_3
#define HAL_TAMP_IT_TAMPER_4
#define HAL_TAMP_IT_TAMPER_5
#define HAL_TAMP_IT_TAMPER_6
#define HAL_TAMP_IT_TAMPER_7
#define HAL_TAMP_IT_TAMPER_8
#define HAL_TAMP_IT_ALL
#define HAL_TAMP_IT_NONE

Related concept: Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).


HAL RTC internal tamper interrupt constants

HAL1

HAL2

#define RTC_IT_INT_TAMP_1
#define RTC_IT_INT_TAMP_2
#define RTC_IT_INT_TAMP_3
#define RTC_IT_INT_TAMP_5
#define RTC_IT_INT_TAMP_6
#define RTC_IT_INT_TAMP_7
#define RTC_IT_INT_TAMP_8
#define RTC_IT_INT_TAMP_9
#define RTC_IT_INT_TAMP_11
#define RTC_IT_INT_TAMP_12
#define RTC_IT_INT_TAMP_13
#define RTC_IT_INT_TAMP_ALL
#define HAL_TAMP_INTERNAL_IT_TAMPER_1
#define HAL_TAMP_INTERNAL_IT_TAMPER_2
#define HAL_TAMP_INTERNAL_IT_TAMPER_3
#define HAL_TAMP_INTERNAL_IT_TAMPER_5
#define HAL_TAMP_INTERNAL_IT_TAMPER_6
#define HAL_TAMP_INTERNAL_IT_TAMPER_7
#define HAL_TAMP_INTERNAL_IT_TAMPER_8
#define HAL_TAMP_INTERNAL_IT_TAMPER_9
#define HAL_TAMP_INTERNAL_IT_TAMPER_11
#define HAL_TAMP_INTERNAL_IT_TAMPER_12
#define HAL_TAMP_INTERNAL_IT_TAMPER_13
#define HAL_TAMP_INTERNAL_IT_ALL
#define HAL_TAMP_INTERNAL_IT_NONE

Related concept: Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).


HAL RTC tamper detection output constants

HAL1

HAL2

#define RTC_TAMPERDETECTIONOUTPUT_DISABLE
#define RTC_TAMPERDETECTIONOUTPUT_ENABLE
#define LL_RTC_OUTPUT_TAMPER_DISABLE
#define LL_RTC_OUTPUT_TAMPER_ENABLE

Related concept: Define statements and enumerations redirected to LL equivalents


HAL RTC internal tamper interrupt constants

HAL1

HAL2



#define RTC_INTERNAL_TAMPER1_INTERRUPT
#define RTC_INTERNAL_TAMPER2_INTERRUPT
#define RTC_INTERNAL_TAMPER3_INTERRUPT
#define RTC_INTERNAL_TAMPER4_INTERRUPT
#define RTC_INTERNAL_TAMPER5_INTERRUPT
...
#define HAL_TAMP_INTERNAL_IT_NONE
#define HAL_TAMP_INTERNAL_IT_TAMPER_1
#define HAL_TAMP_INTERNAL_IT_TAMPER_2
#define HAL_TAMP_INTERNAL_IT_TAMPER_3
#define HAL_TAMP_INTERNAL_IT_TAMPER_4
#define HAL_TAMP_INTERNAL_IT_TAMPER_5
...
#define HAL_TAMP_INTERNAL_IT_ALL

Related concept: Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).


HAL RTC tamper mask constants

HAL1

HAL2



#define RTC_TAMPER_1_MASK_FLAG
#define RTC_TAMPER_2_MASK_FLAG
#define RTC_TAMPER_3_MASK_FLAG
#define RTC_TAMPER_X_MASK_FLAG
#define LL_TAMP_MASK_NONE
#define LL_TAMP_MASK_TAMPER
#define LL_TAMP_MASK_TAMPER1
#define LL_TAMP_MASK_TAMPER2
#define LL_TAMP_MASK_TAMPER3
#define LL_TAMP_MASK_TAMPER_ALL

Related concept: Define statements and enumerations redirected to LL equivalents


HAL RTC tamper mask constants

HAL1

HAL2



#define RTC_TAMPER_1_TRIGGER
#define RTC_TAMPER_2_TRIGGER
#define RTC_TAMPER_3_TRIGGER
#define RTC_TAMPER_X_TRIGGER
#define LL_TAMP_ACTIVELEVEL_DEACTIVATE_ALL
#define LL_TAMP_ACTIVELEVEL_TAMP
#define LL_TAMP_ACTIVELEVEL_TAMP1
#define LL_TAMP_ACTIVELEVEL_TAMP2
#define LL_TAMP_ACTIVELEVEL_TAMP3
#define LL_TAMP_ACTIVELEVEL_TAMP_ALL

Related concepts: Define statements and enumerations redirected to LL equivalents


HAL RTC flags constants

HAL1

HAL2

#define RTC_FLAG_TAMP_1
#define RTC_FLAG_TAMP_2
#define RTC_FLAG_TAMP_3
#define RTC_FLAG_TAMP_4
#define RTC_FLAG_TAMP_5
#define RTC_FLAG_TAMP_6
#define RTC_FLAG_TAMP_7
#define RTC_FLAG_TAMP_8
#define RTC_FLAG_TAMP_ALL

#define RTC_FLAG_INT_TAMP_1
#define RTC_FLAG_INT_TAMP_2
#define RTC_FLAG_INT_TAMP_3
#define RTC_FLAG_INT_TAMP_5
#define RTC_FLAG_INT_TAMP_6
#define RTC_FLAG_INT_TAMP_7
#define RTC_FLAG_INT_TAMP_8
#define RTC_FLAG_INT_TAMP_9
#define RTC_FLAG_INT_TAMP_11
#define RTC_FLAG_INT_TAMP_12
#define RTC_FLAG_INT_TAMP_13
#define RTC_FLAG_INT_TAMP_ALL

In HAL1 these defines are used with __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__) and __HAL_RTC_TAMPER_CLEAR_FLAG(__HANDLE__, __FLAG__)

In HAL2 you can use the PollForEvent functions directly to check and clear the flags:

HAL_TAMP_INTERNAL_PollForEvent(uint32_t internal_tampers, uint32_t timeout_ms)

HAL_TAMP_PASSIVE_PollForEvent(uint32_t tampers, uint32_t timeout_ms)

If needed you can use the LL functions to check for the flag:

LL_TAMP_IsActiveFlag_TAMP(uint32_t Tampers)

LL_TAMP_IsActiveFlag_ITAMP(uint32_t InternalTampers).

and clear the flags with:

LL_TAMP_ClearFlag_TAMP(uint32_t Tampers)

LL_TAMP_ClearFlag_ITAMP(uint32_t InternalTampers)


HAL RTC active tamper enable definitions constants

HAL1

HAL2

#define RTC_ATAMP_ENABLE
#define RTC_ATAMP_DISABLE

In HAL2 the active tamper management is handled by

HAL_TAMP_ACTIVE_Start(uint32_t tampers, uint32_t interruption, const uint32_t *p_seeds)

HAL_TAMP_ACTIVE_Stop(uint32_t tampers)

If needed to only enable or disable the active mode you can use:

LL_TAMP_ATAMP_EnableActiveMode(uint32_t Tampers) and

LL_TAMP_ATAMP_DisableActiveMode(uint32_t Tampers) instead.


HAL RTC active tamper interrupt definitions constants

HAL1

HAL2

#define RTC_ATAMP_INTERRUPT_ENABLE
#define RTC_ATAMP_INTERRUPT_DISABLE

In HAL2 the active tamper interruption management is handled by:

HAL_TAMP_ACTIVE_Start(uint32_t tampers, uint32_t interruption, const uint32_t *p_seeds)

HAL_TAMP_ACTIVE_Stop(uint32_t tampers)

If needed to only enable or disable the interruption you can use:

LL_TAMP_EnableIT(uint32_t TampersIT) and

LL_TAMP_DisableIT(uint32_t TampersIT) instead.


HAL RTC active tamper filter definitions constants

HAL1

HAL2



#define RTC_ATAMP_FILTER_ENABLE
#define RTC_ATAMP_FILTER_DISABLE
typedef enum
{
  HAL_TAMP_ACTIVE_FILTER_ENABLE
  HAL_TAMP_ACTIVE_FILTER_DISABLE
} hal_tamp_active_filter_state_t;

Related concepts:


HAL RTC active tamper asynchronous prescaler clock definitions constants

HAL1

HAL2



#define RTC_ATAMP_ASYNCPRES_RTCCLK
#define RTC_ATAMP_ASYNCPRES_RTCCLK_2
#define RTC_ATAMP_ASYNCPRES_RTCCLK_4
#define RTC_ATAMP_ASYNCPRES_RTCCLK_8
#define RTC_ATAMP_ASYNCPRES_RTCCLK_16
#define RTC_ATAMP_ASYNCPRES_RTCCLK_32
#define RTC_ATAMP_ASYNCPRES_RTCCLK_64
#define RTC_ATAMP_ASYNCPRES_RTCCLK_128
#define RTC_ATAMP_ASYNCPRES_RTCCLK_2048
typedef enum
{
  HAL_TAMP_ACTIVE_PRESCALER_RTCCLK
  HAL_TAMP_ACTIVE_PRESCALER_RTCCLK_DIV_2
  HAL_TAMP_ACTIVE_PRESCALER_RTCCLK_DIV_4
  HAL_TAMP_ACTIVE_PRESCALER_RTCCLK_DIV_8
  HAL_TAMP_ACTIVE_PRESCALER_RTCCLK_DIV_16
  HAL_TAMP_ACTIVE_PRESCALER_RTCCLK_DIV_32
  HAL_TAMP_ACTIVE_PRESCALER_RTCCLK_DIV_64
  HAL_TAMP_ACTIVE_PRESCALER_RTCCLK_DIV_128
  HAL_TAMP_ACTIVE_PRESCALER_RTCCLK_DIV_2048
} hal_tamp_active_prescaler_t;

Related concepts:


HAL RTC active tamper selection definition constants

HAL1

HAL2

#define RTC_ATAMP_1
#define RTC_ATAMP_2
#define RTC_ATAMP_3
#define RTC_ATAMP_4
#define RTC_ATAMP_5
#define RTC_ATAMP_6
#define RTC_ATAMP_7
#define RTC_ATAMP_8
#define HAL_TAMP_TAMPER_1
#define HAL_TAMP_TAMPER_2
#define HAL_TAMP_TAMPER_3
#define HAL_TAMP_TAMPER_4
#define HAL_TAMP_TAMPER_5
#define HAL_TAMP_TAMPER_6
#define HAL_TAMP_TAMPER_7
#define HAL_TAMP_TAMPER_8
#define HAL_TAMP_TAMPER_ALL

Related concepts: Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).


HAL RTC monotonic counter instance definition constants

HAL1

HAL2



#define RTC_MONOTONIC_COUNTER_1
typedef enum
{
  HAL_TAMP_MONOTONIC_1
} hal_tamp_monotonic_counter_t;

Related concepts:


HAL RTC backup registers definition constants

HAL1

HAL2



#define RTC_BKP_NUMBER
#define RTC_BKP_DR0
#define RTC_BKP_DR1
#define RTC_BKP_DR2
#define RTC_BKP_DR3
#define RTC_BKP_DR4
#define RTC_BKP_DR5
#define RTC_BKP_DR6
#define RTC_BKP_DR7
#define RTC_BKP_DR8
#define RTC_BKP_DR9
#define RTC_BKP_DR10
#define RTC_BKP_DR11
#define RTC_BKP_DR12
#define RTC_BKP_DR13
#define RTC_BKP_DR14
#define RTC_BKP_DR15
#define RTC_BKP_DR16
#define RTC_BKP_DR17
#define RTC_BKP_DR18
#define RTC_BKP_DR19
#define RTC_BKP_DR20
#define RTC_BKP_DR21
#define RTC_BKP_DR22
#define RTC_BKP_DR23
#define RTC_BKP_DR24
#define RTC_BKP_DR25
#define RTC_BKP_DR26
#define RTC_BKP_DR27
#define RTC_BKP_DR28
#define RTC_BKP_DR29
#define RTC_BKP_DR30
#define RTC_BKP_DR31
typedef enum
{
  /* Removed */
  HAL_TAMP_BACKUP_REG_0
  HAL_TAMP_BACKUP_REG_1
  HAL_TAMP_BACKUP_REG_2
  HAL_TAMP_BACKUP_REG_3
  HAL_TAMP_BACKUP_REG_4
  HAL_TAMP_BACKUP_REG_5
  HAL_TAMP_BACKUP_REG_6
  HAL_TAMP_BACKUP_REG_7
  HAL_TAMP_BACKUP_REG_8
  HAL_TAMP_BACKUP_REG_9
  HAL_TAMP_BACKUP_REG_10
  HAL_TAMP_BACKUP_REG_11
  HAL_TAMP_BACKUP_REG_12
  HAL_TAMP_BACKUP_REG_13
  HAL_TAMP_BACKUP_REG_14
  HAL_TAMP_BACKUP_REG_15
  HAL_TAMP_BACKUP_REG_16
  HAL_TAMP_BACKUP_REG_17
  HAL_TAMP_BACKUP_REG_18
  HAL_TAMP_BACKUP_REG_19
  HAL_TAMP_BACKUP_REG_20
  HAL_TAMP_BACKUP_REG_21
  HAL_TAMP_BACKUP_REG_22
  HAL_TAMP_BACKUP_REG_23
  HAL_TAMP_BACKUP_REG_24
  HAL_TAMP_BACKUP_REG_25
  HAL_TAMP_BACKUP_REG_26
  HAL_TAMP_BACKUP_REG_27
  HAL_TAMP_BACKUP_REG_28
  HAL_TAMP_BACKUP_REG_29
  HAL_TAMP_BACKUP_REG_30
  HAL_TAMP_BACKUP_REG_31
} hal_tamp_backup_register_idx_t;

Related concepts:


HAL RTC binary Mode (32-bit free-running counter configuration) Constants

HAL1

HAL2



#define RTC_BINARY_NONE
#define RTC_BINARY_ONLY
#define RTC_BINARY_MIX
typedef enum
{
  HAL_RTC_MODE_BCD
  HAL_RTC_MODE_BINARY
  HAL_RTC_MODE_MIX
} hal_rtc_mode_t;

Related concepts:


HAL RTC binary mix BCDU constants

HAL1

HAL2



#define RTC_BINARY_MIX_BCDU_0
#define RTC_BINARY_MIX_BCDU_1
#define RTC_BINARY_MIX_BCDU_2
#define RTC_BINARY_MIX_BCDU_3
#define RTC_BINARY_MIX_BCDU_4
#define RTC_BINARY_MIX_BCDU_5
#define RTC_BINARY_MIX_BCDU_6
#define RTC_BINARY_MIX_BCDU_7
typedef enum
{
  HAL_RTC_MIX_MODE_BCD_SEC_INC_8BITS
  HAL_RTC_MIX_MODE_BCD_SEC_INC_9BITS
  HAL_RTC_MIX_MODE_BCD_SEC_INC_10BITS
  HAL_RTC_MIX_MODE_BCD_SEC_INC_11BITS
  HAL_RTC_MIX_MODE_BCD_SEC_INC_12BITS
  HAL_RTC_MIX_MODE_BCD_SEC_INC_13BITS
  HAL_RTC_MIX_MODE_BCD_SEC_INC_14BITS
  HAL_RTC_MIX_MODE_BCD_SEC_INC_15BITS
} hal_rtc_mix_mode_bcd_seconds_increment_t;

 typedef enum
 {
   HAL_RTC_BCD_UPDATE_8BITS
   HAL_RTC_BCD_UPDATE_9BITS
   HAL_RTC_BCD_UPDATE_10BITS
   HAL_RTC_BCD_UPDATE_11BITS
   HAL_RTC_BCD_UPDATE_12BITS
   HAL_RTC_BCD_UPDATE_13BITS
   HAL_RTC_BCD_UPDATE_14BITS
   HAL_RTC_BCD_UPDATE_15BITS
 } hal_rtc_bcd_update_t;

Related concepts:


HAL RTC alarm sub seconds with binary mode masks definitions constants

HAL1

HAL2

#define RTC_ALARMSUBSECONDBINMASK_ALL
#define RTC_ALARMSUBSECONDBINMASK_SS31_1
#define RTC_ALARMSUBSECONDBINMASK_SS31_2
#define RTC_ALARMSUBSECONDBINMASK_SS31_3
#define RTC_ALARMSUBSECONDBINMASK_SS31_4
#define RTC_ALARMSUBSECONDBINMASK_SS31_5
#define RTC_ALARMSUBSECONDBINMASK_SS31_6
#define RTC_ALARMSUBSECONDBINMASK_SS31_7
#define RTC_ALARMSUBSECONDBINMASK_SS31_8
#define RTC_ALARMSUBSECONDBINMASK_SS31_9
#define RTC_ALARMSUBSECONDBINMASK_SS31_10
#define RTC_ALARMSUBSECONDBINMASK_SS31_11
#define RTC_ALARMSUBSECONDBINMASK_SS31_12
#define RTC_ALARMSUBSECONDBINMASK_SS31_13
#define RTC_ALARMSUBSECONDBINMASK_SS31_14
#define RTC_ALARMSUBSECONDBINMASK_SS31_15
#define RTC_ALARMSUBSECONDBINMASK_SS31_16
#define RTC_ALARMSUBSECONDBINMASK_SS31_17
#define RTC_ALARMSUBSECONDBINMASK_SS31_18
#define RTC_ALARMSUBSECONDBINMASK_SS31_19
#define RTC_ALARMSUBSECONDBINMASK_SS31_20
#define RTC_ALARMSUBSECONDBINMASK_SS31_21
#define RTC_ALARMSUBSECONDBINMASK_SS31_22
#define RTC_ALARMSUBSECONDBINMASK_SS31_23
#define RTC_ALARMSUBSECONDBINMASK_SS31_24
#define RTC_ALARMSUBSECONDBINMASK_SS31_25
#define RTC_ALARMSUBSECONDBINMASK_SS31_26
#define RTC_ALARMSUBSECONDBINMASK_SS31_27
#define RTC_ALARMSUBSECONDBINMASK_SS31_28
#define RTC_ALARMSUBSECONDBINMASK_SS31_29
#define RTC_ALARMSUBSECONDBINMASK_SS31_30
#define RTC_ALARMSUBSECONDBINMASK_SS31
#define RTC_ALARMSUBSECONDBINMASK_NONE

These constants are removed in HAL2, use HAL_RTC_ALARM_SetBinaryTime(hal_rtc_alarm_t alarm, uint32_t alarm_subsecond) instead.

This function will set alarm A or B sub seconds value which is compared to the current time in order to trigger the alarm.

Subsecond: If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF, else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF.


HAL RTC alarm sub seconds with binary mode auto clear definitions constants

HAL1

HAL2



#define RTC_ALARMSUBSECONDBIN_AUTOCLR_NO
#define RTC_ALARMSUBSECONDBIN_AUTOCLR_YES
typedef enum
{
  HAL_RTC_ALARM_SUBSECONDS_AUTO_RELOAD_DISABLE
  HAL_RTC_ALARM_SUBSECONDS_AUTO_RELOAD_ENABLE
} hal_rtc_alarm_subseconds_auto_reload_t;

Related concepts:


HAL RTC secure definition constants

HAL1

HAL2

#define RTC_SECURE_FULL_YES
#define RTC_SECURE_FULL_NO
#define HAL_RTC_SEC_ITEM_SEC

HAL RTC non secure features definition constants

HAL1

HAL2

#define RTC_NONSECURE_FEATURE_NONE
#define RTC_NONSECURE_FEATURE_INIT
#define RTC_NONSECURE_FEATURE_CAL
#define RTC_NONSECURE_FEATURE_TS
#define RTC_NONSECURE_FEATURE_WUT
#define RTC_NONSECURE_FEATURE_ALRA
#define RTC_NONSECURE_FEATURE_ALRB
#define RTC_NONSECURE_FEATURE_ALL

#define HAL_RTC_SEC_ITEM_INITSEC
#define HAL_RTC_SEC_ITEM_CALSEC
#define HAL_RTC_SEC_ITEM_TSSEC
#define HAL_RTC_SEC_ITEM_WUTSEC
#define HAL_RTC_SEC_ITEM_ALRASEC
#define HAL_RTC_SEC_ITEM_ALRBSEC
#define HAL_RTC_SEC_ITEM_ALL

HAL RTC TAMP secure definition constants

HAL1

HAL2

#define TAMP_SECURE_FULL_YES
#define TAMP_SECURE_FULL_NO
#define HAL_TAMP_SEC_ITEM_TAMP

HAL RTC TAMP monotonic counter secure definition constants

HAL1

HAL2

#define TAMP_MONOTONIC_CNT_SECURE_YES
#define TAMP_MONOTONIC_CNT_SECURE_NO
#define HAL_TAMP_SEC_ITEM_CNT1

HAL RTC privilege full definition constants

HAL1

HAL2

#define RTC_PRIVILEGE_FULL_YES
#define RTC_PRIVILEGE_FULL_NO
#define HAL_RTC_PRIV_ITEM_PRIV

HAL RTC privilege features definition constants

HAL1

HAL2

#define RTC_PRIVILEGE_FEATURE_NONE
#define RTC_PRIVILEGE_FEATURE_INIT
#define RTC_PRIVILEGE_FEATURE_CAL
#define RTC_PRIVILEGE_FEATURE_TS
#define RTC_PRIVILEGE_FEATURE_WUT
#define RTC_PRIVILEGE_FEATURE_ALRA
#define RTC_PRIVILEGE_FEATURE_ALRB
#define RTC_PRIVILEGE_FEATURE_ALL

#define HAL_RTC_PRIV_ITEM_INITPRIV
#define HAL_RTC_PRIV_ITEM_CALPRIV
#define HAL_RTC_PRIV_ITEM_TSPRIV
#define HAL_RTC_PRIV_ITEM_WUTPRIV
#define HAL_RTC_PRIV_ITEM_ALRAPRIV
#define HAL_RTC_PRIV_ITEM_ALRBPRIV
#define HAL_RTC_PRIV_ITEM_ALL

HAL RTC TAMP security definition constants

HAL1

HAL2

#define TAMP_PRIVILEGE_FULL_YES
#define TAMP_PRIVILEGE_FULL_NO
#define HAL_TAMP_PRIV_ITEM_TAMP

HAL RTC TAMP secret device configuration erase definition constants

HAL1

HAL2

#define TAMP_SECRETDEVICE_ERASE_ENABLE
#define TAMP_SECRETDEVICE_ERASE_DISABLE
#define HAL_TAMP_BACKUP_SRAM
#define HAL_TAMP_RESOURCES_ALL

HAL RTC TAMP monotonic counter privilege definition constants

HAL1

HAL2

#define TAMP_MONOTONIC_CNT_PRIVILEGE_YES
#define TAMP_MONOTONIC_CNT_PRIVILEGE_NO
#define HAL_TAMP_PRIV_ITEM_CNT1

HAL RTC privilege backup register privilege zone definition constants

HAL1

HAL2

#define RTC_PRIVILEGE_BKUP_ZONE_NONE
#define RTC_PRIVILEGE_BKUP_ZONE_1
#define RTC_PRIVILEGE_BKUP_ZONE_2
#define RTC_PRIVILEGE_BKUP_ZONE_ALL

#define HAL_TAMP_PRIV_ITEM_BACKUP_ZONE_1
#define HAL_TAMP_PRIV_ITEM_BACKUP_ZONE_2